<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			body{
				width: 100%;
				overflow: hidden;
			}
			span{
				display: inline-block;
				width: 80px;
			}
		</style>
	</head>
	<body>
		<script type="text/javascript">
			/*打印九九乘法表*/
			//创建外层用来控制高度
			for(var i = 1; i <= 9; i++){
				//创建内层循环控制宽度
				for(var j = 1; j <= i;j++){
					document.write("<span>"+j+"*"+i+"="+j*i+"</span>");
					
				}
				document.write("<br />")
			}
		</script>
	</body>
</html>
